package com.zhuangjie.rider.feign;

import com.zhaungjie.base.conduit.TypeR;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(name= "spark-third-party",path = "/third-party")
public interface ThirdPartyFeignService {
    @GetMapping("/sms/sendCode")
    // TODO 这里进行最小发送间隔拦截，使用注解的方式
    TypeR sendCode(@RequestParam(value = "scene",required = false) String scene,@RequestParam("phonePrefix") String phonePrefix, @RequestParam("phone") String phone);
}
